package com.bigdata.demo.service.search;

import com.bigdata.demo.entity.CRReport;
import com.bigdata.demo.service.ServiceMultiResult;
import com.bigdata.demo.service.ServiceResult;
import com.bigdata.demo.web.dto.CRDTO;
import com.bigdata.demo.web.form.CRReportSearch;

import java.util.List;

/**
 * 检索接口
 */
public interface ISearchService {

     void createOrUpdateIndex(CRIndexMessage message);


    ServiceMultiResult<CRDTO> query(CRReportSearch crReportSearch);

    /**
     * 获取补全建议关键词
     */
    ServiceResult<List<String>> suggest(String prefix);


}
